//
//  TFView.m
//  TFView
//
//  Created by lanou3g on 15/6/13.
//  Copyright (c) 2015年 多飞科技. All rights reserved.
//

#import "TFView.h"

@implementation TFView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        CGFloat height = frame.size.height;
        CGFloat width = frame.size.width;
        
        _ltLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, width/3, height)];
        
        [self addSubview:_ltLabel];
        [_ltLabel release];
        
        _ltTextField = [[UITextField alloc]initWithFrame:CGRectMake(width/3+20, 0, width/3*2-20, height)];
        _ltTextField.borderStyle = UITextBorderStyleRoundedRect;
        [self addSubview:_ltTextField];
        [_ltTextField release];
        
        
        
        
    }return self;
}




@end
